package com.jyw.business.obstacles.domain.vo.web;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyw.common.constant.SysDictTypeConstant;
import com.jyw.common.annotation.Conversion;
import com.jyw.common.enums.ConversionType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.util.Date;

/**
 * @author 沈峻
 * @ClassName ServerPageVO
 * @Description 服务台电话报修分页结果
 * @Date 2023/8/16 10:25
 **/
@ApiModel("服务台电话报修分页结果")
@Data
@FieldNameConstants
public class ServerCallPageVO {

    @ApiModelProperty("工单id")
    private Long id;

    @ApiModelProperty("工单号")
    private String orderNum;

    @ApiModelProperty("接听情况")
    @Conversion(value = ConversionType.DICT,dictType = SysDictTypeConstant.OBS_CALL_TYPE)
    private Integer callType;

    @ApiModelProperty("接听情况标签")
    private String callTypeToName;

    @ApiModelProperty("报修电话")
    private String phone;

    @ApiModelProperty("报修院区/科室")
    @Conversion(value = ConversionType.DEPT,name = Fields.deptName)
    private Long deptId;

    @ApiModelProperty("报修科室")
    private String deptName;

    @ApiModelProperty("处置类型")
    @Conversion(value = ConversionType.DICT,dictType = SysDictTypeConstant.OBS_DEAL_TYPE)
    private String dealType;

    @ApiModelProperty("处置类型标签")
    private String dealTypeToName;

    @ApiModelProperty("来电时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("关联工单")
    private String linkedCode;

    @ApiModelProperty("坐席人")
    @Conversion(value = ConversionType.USER,name = Fields.receptionName)
    private Long reception;

    @ApiModelProperty("坐席人名称")
    private String receptionName;

    @ApiModelProperty("所找人员")
    @Conversion(value = ConversionType.USER,name = Fields.findUserName)
    private Long findUser;

    @ApiModelProperty("所找人员名称")
    private String findUserName;

    @ApiModelProperty("录音")
    private String recording;
}
